package com.vf.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vf.activity.mapper.ActivityPhotosMapper;
import com.vf.activity.domain.ActivityPhotos;
import com.vf.activity.service.IActivityPhotosService;

/**
 * 活动照片Service业务层处理
 * 
 * @author LBS
 * @date 2025-06-04
 */
@Service
public class ActivityPhotosServiceImpl implements IActivityPhotosService 
{
    @Autowired
    private ActivityPhotosMapper activityPhotosMapper;

    /**
     * 查询活动照片
     * 
     * @param photoId 活动照片主键
     * @return 活动照片
     */
    @Override
    public ActivityPhotos selectActivityPhotosByPhotoId(Long photoId)
    {
        return activityPhotosMapper.selectActivityPhotosByPhotoId(photoId);
    }

    /**
     * 查询活动照片列表
     * 
     * @param activityPhotos 活动照片
     * @return 活动照片
     */
    @Override
    public List<ActivityPhotos> selectActivityPhotosList(ActivityPhotos activityPhotos)
    {
        return activityPhotosMapper.selectActivityPhotosList(activityPhotos);
    }

    /**
     * 新增活动照片
     * 
     * @param activityPhotos 活动照片
     * @return 结果
     */
    @Override
    public int insertActivityPhotos(ActivityPhotos activityPhotos)
    {
        return activityPhotosMapper.insertActivityPhotos(activityPhotos);
    }

    /**
     * 修改活动照片
     * 
     * @param activityPhotos 活动照片
     * @return 结果
     */
    @Override
    public int updateActivityPhotos(ActivityPhotos activityPhotos)
    {
        return activityPhotosMapper.updateActivityPhotos(activityPhotos);
    }

    /**
     * 批量删除活动照片
     * 
     * @param photoIds 需要删除的活动照片主键
     * @return 结果
     */
    @Override
    public int deleteActivityPhotosByPhotoIds(Long[] photoIds)
    {
        return activityPhotosMapper.deleteActivityPhotosByPhotoIds(photoIds);
    }

    /**
     * 删除活动照片信息
     * 
     * @param photoId 活动照片主键
     * @return 结果
     */
    @Override
    public int deleteActivityPhotosByPhotoId(Long photoId)
    {
        return activityPhotosMapper.deleteActivityPhotosByPhotoId(photoId);
    }
}
